a = [1,2,3,4,5];

let change = function (abbb){
    abbb[0] = 0;
}

change(a);

console.log(a);